<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
    #div1 {
        width: 100px;
        height: 100px;
        background: red;
        position: absolute;
    }

    #div2 {
        width: 400px;
        height: 400px;
        background: blue;
        position: absolute;
        top: 200px;
    }
    </style>
    <script type="text/javascript" src="drag.js"></script>
    <script type="text/javascript" src="limintDarg.js"></script>
    <script type="text/javascript">
    //鼠标按下
    //鼠标抬起
    //鼠标移动
    
    window.onload=function(){
        new Drag('div1');
        new LimitDarg('div2');
    };



    </script>
</head>

<body>
    <div id="div1">热我认为</div>
    <div id="div2">42342424</div>
</body>

</html>